# Carnal Realms common framework hooks.
#
# Keep this file small and explicit. Add only the hooks needed by rebuilt
# framework systems.

on_chronicle_owner_change = {
	events = { cr_weather.21 }
}

on_chronicle_start = {
	events = {
		cr_lust.0
		cr_lust.4
		cr_weather.0
		cr_weather.22
	}
}

on_startup = {
	events = {
		cr_adultery.1
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
		cr_body.6
		cr_body.7
		cr_lust.0
		cr_lust.4
		cr_papacy.1
		cr_weather.0
		cr_weather.22
	}
}

on_yearly_pulse = {
	events = {
		cr_adultery.1
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
		cr_body.6
		cr_body.7
		cr_lust.0
		cr_lust.2
		cr_papacy.1
		cr_story.1
		cr_weather.1
		cr_weather.22
	}
}

# Route the weather calendar after the month-boundary autosave has completed.
on_monthly_pulse = {
	events = { cr_weather.30 }
}

on_new_holder = {
	events = {
		cr_lust.2
		cr_papacy.1
		cr_weather.22
	}
}

on_new_holder_inheritance = {
	events = {
		cr_lust.2
		cr_weather.22
	}
}

on_new_holder_usurpation = {
	events = {
		cr_lust.2
		cr_weather.22
	}
}

on_unlanded = {
	events = { cr_weather.23 }
}

on_birth = {
	events = {
		cr_adultery.1
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
	}
}

on_adulthood = {
	events = {
		cr_adultery.1
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
		cr_body.6
		cr_body.7
	}
}

on_character_convert_religion = {
	events = { cr_adultery.1 }
}

on_employer_change = {
	events = {
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
		cr_body.6
		cr_body.7
	}
}

on_host_change = {
	events = {
		cr_body.1
		cr_body.3
		cr_body.2
		cr_body.4
		cr_body.5
		cr_body.6
		cr_body.7
	}
}
